<?php
if (!defined('PATH')) exit();

$_POST['archez_name'] = 'OTServ';
$_POST['archez_port'] = '7171';
$_POST['archez_host'] = 'localhost';
$_POST['archez_user'] = 'root';
$_POST['archez_password'] = '';
$_POST['archez_database'] = 'database';
$_POST['archez_salt'] = '';
$_POST['archez_real_path'] = '/www/archezaac/';
?>

<table border="0" cellpadding="8" cellspacing="1" width="100%">
	<tr><td>
			You are now required to fill the following blanks in order to let the AAC do the rest for you.
		</td></tr>
</table>
<br />

<form action="<?=PATH?>/install/check" method="post" >

	<table border="0" cellpadding="8" cellspacing="1" width="100%">
		<tr><td width="25%">Server Name:</td><td><input class="input" type="text" name="archez_name" value="<?= $_POST['archez_name'] ?>" /></td></tr>
		<tr><td width="25%">Port:</td><td><input class="input" type="text" maxlength="4" name="archez_port" value="<?= $_POST['archez_port'] ?>" /></td></tr>
	</table>
	<br />
	<table border="0" cellpadding="8" cellspacing="1" width="100%">
		<tr><td width="25%">Host:</td><td><input class="input" type="text" name="archez_host" value="<?= $_POST['archez_host'] ?>" /></td></tr>
		<tr><td width="25%">User:</td><td><input class="input" type="text" name="archez_user" value="<?= $_POST['archez_user'] ?>" /></td></tr>
		<tr><td width="25%">Password:</td><td><input class="input" type="password" name="archez_password" value="" /></td></tr>
		<tr><td width="25%">Database:</td><td><input class="input" type="text" name="archez_database" value="<?= $_POST['archez_database'] ?>" /></td></tr>
		<tr><td width="25%">Encryption:</td><td><select class="input" name="archez_encrypt"><option value="sha1">SHA-1</option><option value="md5">MD5</option><option value="plain">Plain</option></select></td></tr>
		<tr><td width="25%">Salt:</td><td><input class="input" type="text" name="archez_salt" value="<?= $_POST['archez_salt'] ?>" /></td></tr>
	</table>
	<br />
	<table border="0" cellpadding="8" cellspacing="1" width="100%">
		<tr><td width="25%">reCaptcha Public Key:</td><td><input class="input" type="text" name="archez_publickey" /></td></tr>
		<tr><td width="25%">reCaptcha Private Key:</td><td><input class="input" type="text" name="archez_privatekey" /></td></tr>
	</table>
	<br />
	<table border="0" cellpadding="8" cellspacing="1" width="100%">
		<tr><td width="25%">Path to AAC on disk:</td><td><input class="input" type="text" name="archez_real_path" value="<?= $_POST['archez_real_path'] ?>" /></td></tr>
	</table>
	<br />
	<table border="0" cellpadding="8" cellspacing="1" width="100%">
		<tr><td width="50%"><input class="button" type="submit" value="Submit" /></td><td><input class="button" type="reset" value="Reset" /></td></tr>
	</table>

</form>